package com.changanw.dd.service;


import com.changanw.dd.Mapper.MasterMapper;
import com.changanw.dd.annotation.DataSource;
import com.changanw.dd.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MasterService {
    @Autowired
    MasterMapper masterMapper;
    @DataSource("master")
    public void updateUserAge(String username, Integer age) {
        masterMapper.updateUserAge(username, age);
    }
}
